package demo1;

public class Bird extends Animal{
    public Bird(String name,int age){
        super(name, age);
    }
    public void fly(){
        System.out.println(this.name+"是一只小鸟,它会飞");
    }
}
